package lanou3g.myfirstapp36kr.activity;

import android.webkit.WebView;
import android.webkit.WebViewClient;

import lanou3g.myfirstapp36kr.R;
import lanou3g.myfirstapp36kr.StringUrl;
import lanou3g.myfirstapp36kr.base.BaseActivity;

/**
 * Created by dllo on 16/8/12.
 */
public class CreateCompnayActivity extends BaseActivity {
    private WebView webView;
    @Override
    protected int getLayout() {
        return R.layout.activity_create_company;
    }

    @Override
    protected void initView() {
        webView = (WebView) findViewById(R.id.web_create_company);

    }

    @Override
    protected void initData() {
        WebViewClient webViewClient = new WebViewClient();
        webView.setWebViewClient(webViewClient);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        webView.getSettings().setBuiltInZoomControls(true);
        openBrowser(StringUrl.stringCreateCompany);

    }
    private void openBrowser(String url){
        webView.loadUrl(url);
    }
}
